//
// Created on 2025/1/14.
//
// Node APIs are not fully supported. To solve the compilation error of the interface cannot be found,
// please include "napi/native_api.h".

#ifndef CANVASTEST_LOG_H
#define CANVASTEST_LOG_H

#include <hilog/log.h>
#define APP_LOG_DOMAIN 0x0000
#define APP_LOG_TAG "CanvasTestOHOS_Native"

#define LOGD(...)                                                      \
  ((void)OH_LOG_Print(LOG_APP, LOG_DEBUG, APP_LOG_DOMAIN, APP_LOG_TAG, \
                      __VA_ARGS__))

#define LOGI(...)                                                             \
  ((void)OH_LOG_Print(LOG_APP, LOG_INFO, \
                      APP_LOG_DOMAIN, APP_LOG_TAG, __VA_ARGS__))

#define LOGW(...)                                                     \
  ((void)OH_LOG_Print(LOG_APP, LOG_WARN, APP_LOG_DOMAIN, APP_LOG_TAG, \
                      __VA_ARGS__))

#define LOGE(...)                                                      \
  ((void)OH_LOG_Print(LOG_APP, LOG_ERROR, APP_LOG_DOMAIN, APP_LOG_TAG, \
                      __VA_ARGS__))

#endif //CANVASTEST_LOG_H
